package com.dimples.dd.system.convert;

import com.dimples.dd.system.model.bo.OrgBO;
import com.dimples.dd.system.model.entity.SystemOrgDO;
import com.dimples.dd.system.model.form.OrgForm;
import com.dimples.dd.system.model.vo.OrgTreeVO;
import org.mapstruct.Mapper;

/**
 * 机构对象转换器
 *
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2024/7/17
 */
@Mapper(componentModel = "spring")
public interface OrgConverter {


    OrgTreeVO entity2Vo(SystemOrgDO entity);

    OrgTreeVO entity2Vo(OrgBO orgBO);

    OrgForm entity2Form(SystemOrgDO entity);

    OrgBO form2Bo(OrgForm formData);

    SystemOrgDO form2Entity(OrgForm formData);
}
